import {BrowserRouter,Switch,Route} from 'react-router-dom'
import clock from './clock/clock.jsx';
import home from './home/home.jsx';
import {hot} from 'react-hot-loader/root';
function App() {
  return (
    <BrowserRouter>
      <Switch>
        <Route path="/home" component={home}></Route>
        <Route path="/" component={clock}></Route>
      </Switch>
    </BrowserRouter>
  );
}

export default hot(App);
